package zhtt02.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import zhtt02.service.User02Service;

/**
 * Created by zhtt on 2016/10/29.
 */
@RestController
public class User02Controller {

    @Autowired private User02Service service;

    @RequestMapping(value = "/user2/{id}",produces = "text/html;charset=utf-8")
    private String get(@PathVariable("id")String id){
        return service.get(id);
    }
}
